<%-- 
    Document   : Register
    Created on : Sep 9, 2012, 5:02:16 PM
    Author     : Ahsan
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="ca.trader.utils.UIUtils"%>
<%@page import="ca.trader.utils.HttpConsts"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<% 
    pageContext.setAttribute("CountryList", UIUtils.getCountryList());
%>
<!DOCTYPE html>
<html>
    <head>
        <jsp:include page="head.jsp" />
        <title>JSP Page</title>
    </head>
    <body>
	<div id="registerPage">
	    <h2 style =" color: #C00">Please Fill All Fields To Register</h2>
		<table>
		    <tbody>
			<tr>
			    <td id="email_label">Email Address</td>
			    <td><input id="email" type="text" name="email" value =""/></td>
			</tr>
			<tr>
			    <td id="first_name_label">First Name</td>
			    <td><input id="first_name" type="text" name="fname" value =""/></td>
			</tr>
			<tr>
			    <td id="last_name_label" >Last Name</td>
			    <td><input id="last_name" type="text" name="lname" value =""/></td>
			</tr>
			<tr>
			    <td id="password_label">Password</td>
			    <td><input id="password" type="password" name="password" value =""/></td>
			</tr>
			<tr>
			    <td id="password2_label">Re-enter Password</td>
			    <td><input id="password2" type="password" name="password2" value =""/></td>
			</tr>
			<tr>
			    <td id="country_label">Country</td>
			    <td><select name="country" id="country_dropdown">
				    <option></option>
				    <c:forEach var="i" items="${CountryList}">
					<option><c:out value="${i.countryName}"/></option>
				    </c:forEach>
				</select>
			    </td>
			</tr>
			<tr>
			    <td id="region_label">Region</td>
			    <td><select name="region" id="region_dropdown">
				<option></option>
				</select>
			    </td>
			</tr>
			<tr>
			    <td id="city_label">City</td>
			    <td><select name="city" id="city_dropdown">	
				<option></option>				    
				</select>
			    </td>
			</tr>
                        <tr>
			    <td></td>
			    <td><input id="user_register_button" type="submit" value="Register"/></td>
			</tr>
		    </tbody>
		</table>
		<label id="errorTextLabelReg" style="color:red"></label>
		
	</div>
	
        <jsp:include page="footer.jsp" />
    </body>
    
    
	


</html>
